
import request from '@/utils/request'
import api from './config'
const host = api.apiHost

// 回款列表
export function getPayList(params) {
  return request({
    url: host + '/payment/list',
    method: 'get',
    params
  })
}

// 新增回款
export function savePay(data) {
  return request({
    url: host + '/payment/save',
    method: 'post',
    data
  })
}

// 新增回款
export function updatePay(data) {
  return request({
    url: host + '/payment/update',
    method: 'post',
    data
  })
}

// 获取回款
export function getPay(params) {
  return request({
    url: host + '/payment/detail',
    method: 'get',
    params
  })
}

// 删除回款
export function deletePay(data) {
  return request({
    url: host + '/payment/delete',
    method: 'post',
    data
  })
}
// PayStatusLine  /payment/status
export function updatePayStatus(data) {
  return request({
    url: host + '/payment/status',
    method: 'post',
    data
  })
}
// // transferPay
// export function transferPay(data) {
//   return request({
//     url: host + '/payment/transfer',
//     method: 'post',
//     data
//   })
// }

// // customer​/dropDown
// export function getPaysSelect(params) {
//   return request({
//     url: host + '/payment/dropDown',
//     method: 'get',
//     params
//   })
// }

// ​/payment​/detailList 回款详细列表
export function getDetailList(params) {
  return request({
    url: host + '/payment/detailList',
    method: 'get',
    params
  })
}
